package dubbo.server4.api.domain.dto;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by yangxx on 2017/8/15 0015.
 * easyui grid 返回数据格式
 */
public class WebPager<T> implements Serializable {

    private List<T> rows = new ArrayList<T>();//返回的列数据
    private Long total = 0l;//返回的总条数
    private Integer pageNum;//当前页
    private Integer pageSize;//一页大小
    
    public WebPager() {
		super();
	}

	public WebPager(List<T> rows, Long total) {
		super();
		this.rows = rows;
		this.total = total;
	}

	public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public Integer getPageNum() {
		return pageNum;
	}

	public void setPageNum(Integer pageNum) {
		this.pageNum = pageNum;
	}

	public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
}
